import Vue from 'vue';
import VueResource from 'vue-resource';
import Vuex from 'vuex';
import App from './app';
import router from './router';
Vue.use(VueResource);
Vue.use(Vuex);
let store = new Vuex.Store({
	// 仓库
	
	// 状态
	state: {
		bigState: false
	},
	// 行为：是用来改变状态
	mutations: {
		changeState(state){
			state.bigState = !state.bigState;
		}
	}
});
new Vue({
	el: "#app",
	render:h=>h(App),
	router,
    store
})
